<?php

namespace business\search\models;

use yii\db\ActiveRecord;

/**
 * This is the model class for table "b2b_data_center.uuc_search_words".
 *
 * @property integer $uid
 * @property string $word
 * @property integer $type
 * @property integer $created_by
 * @property string $created_time
 * @property integer $updated_by
 * @property string $updated_time
 * @property integer $is_deleted
 */
class SupplierWordsModel extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'b2b_data_center.uuc_search_words';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['word'], 'required'],
            [['type', 'created_by', 'updated_by', 'is_deleted'], 'integer'],
            [['created_time', 'updated_time'], 'safe'],
            [['word'], 'string', 'max' => 32],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'uid' => 'Uid',
            'word' => '词语',
            'type' => '1:品牌词,2:产品服务词,3:地区词,4:百强词',
            'created_by' => '创建人ID',
            'created_time' => '创建日期',
            'updated_by' => '修改人',
            'updated_time' => '修改时间',
            'is_deleted' => '是否删除：0-正常，1-已删除',
        ];
    }
}
